import { RequestMethod, ResponseSearchDataType } from "../types/type";
import request from "../utils/request";

export function getAllData(): Promise<ResponseSearchDataType[]> {
  return request.request({
    url: "/data.json",
    method: RequestMethod.GET,
    // get delete:  params:{}
    // post/ put : data : {}
  });
}
